<%@page import="br.com.controle.Controller"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Resultado</title>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/tabela.css"></link>

</head>
<body>

	<%
		out.print("<div class='linha'>"+
					"<div class='celula celulaCanto'>*</div>");
		
		for(int i=0;i<Controller.M1.linhas.intValue();i++){
			if(i == 0){
				for(int j=0;j<Controller.M2.colunas.intValue();j++){
					out.print("<div class='celula celulaTopo'>"+j+"</div>");
				}
				out.print("</div><br/>");
			}
			out.print("<div class='linha'>");
			for(int j=0;j<Controller.M2.colunas.intValue();j++){
				
				if(j==0){
					out.print("<div class='celula celulaLateral'>"+i+"</div>");
				}
				out.print("<div class='celula' id='"+ i +"," + j +"'>" + Controller.MResult[i][j] + "</div>");
			}
			out.print("</div><br/>");
		}
		
		
	 %>

</body>
</html>